import request from "@/utils/request";

//表格渲染
export function getTableList(query) {
  return request({
    url: '/system/teacher/list',
    method: 'get',
    params: query,
  })
}

//负责老师
export function getTeacher(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query,
  })
}

//获取标签框
export function getUserLabel(params) {
  return request({
    url: '/system/label/useList',
    method: 'get',
    params
  })
}

//添加咨询师
export function getAddCounselor(data) {
  return request({
    url: 'system/teacher',
    method: 'post',
    data
  })
}

//编辑咨询师
export function getEditCounselor(data) {
  return request({
    url: '/system/teacher',
    method: 'put',
    data
  })
}

//删除咨询师
export function getDelete(data) {
  return request({
    url: `/system/teacher/${data}`,
    method: 'delete',
  })
}

//上传头像
export function getSculpture(data) {
  return request({
    url: '/common/upload',
    method: 'post',
    data
  })
}
